﻿using System;
using System.Collections.Generic;
using HHL_Acc.HHL_DaoAcc.DataObject;
using HHL_Acc.HHL_EntityAcc;
using HHL_DaoAcc.DataObject;

namespace HHL_Acc.HHL_BussAcc.DataObject
{
    internal class SmiSoldMonthlyTicketsBus
    {
        private SmiSoldMonthlyTicketsDao smiSoldMonthlyTicketsDao;

        public SmiSoldMonthlyTicketsBus()
        {
            smiSoldMonthlyTicketsDao = new SmiSoldMonthlyTicketsDao();
        }

        public List<SmiSoldMonthlyTickets> GetSmiSoldMonthlyTickets()
        {
            return (List<SmiSoldMonthlyTickets>) smiSoldMonthlyTicketsDao.GetSmiSoldMonthlyTickets();
        }

        public bool CheckOwnerSerial(string strSerial, string strOwner)
        {
            return smiSoldMonthlyTicketsDao.CheckOwnerSerial(strSerial, strOwner);
        }

        // insert soldmonthlytickets
        public int InsertSmiSoldMonthlyTickets(SmiSoldMonthlyTickets dto)
        {
            // Insert table Smi Import Details
            return smiSoldMonthlyTicketsDao.InsertSmiSoldMonthlyTickets(dto);
        }

        // update soldmonthlytickets
        public int UpdateSmiSoldMonthlyTickets(SmiSoldMonthlyTickets dto)
        {
            // Insert table Smi Import Details
            return smiSoldMonthlyTicketsDao.UpdateSmiSoldMonthlyTickets(dto);
        }

        // Xóa trong bảng Smi_MonthlyTicket
        public int DeleteSmiMonthlyTicket(String strSerial)
        {
            return smiSoldMonthlyTicketsDao.DeleteSmiMonthlyTickets(strSerial);
        }
    }
}